#ifndef SOCKETFACTORYINTERFACE_H
#define SOCKETFACTORYINTERFACE_H

#include <QAbstractSocket>

//这个接口的作用就是用来定义这个工厂具有的功能的

class socketFactoryInterface
{
public:
    socketFactoryInterface(const socketFactoryInterface &) = delete;
    virtual ~socketFactoryInterface() = default;
    socketFactoryInterface &operator=(const socketFactoryInterface &) = delete;
    virtual QAbstractSocket *createSockert(QObject *parent = nullptr) = 0;

protected:
    socketFactoryInterface(QObject *parent = nullptr) {}
};

#endif // SOCKETFACTORYINTERFACE_H
